package com.dolphin.servicedriveruser.remote;


import com.dolphin.common.dto.ResponseResult;
import com.dolphin.common.response.TerminalResponse;
import com.dolphin.common.response.TrackResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@FeignClient("service-map")
public interface ServiceMapClient {

    @PostMapping("/terminal/add")
    ResponseResult<TerminalResponse> addTerminal(@RequestParam  String name,@RequestParam String desc);

    @PostMapping("/track/add")
    ResponseResult<TrackResponse> addTrack(@RequestParam String tid);

}
